cmake_minimum_required(VERSION 2.8)


# Project settings
set(memory PROJECT_NAME)

if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -Wno-reorder -Wno-switch-enum")
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
endif ()

set (HEADERS
	Allocator.h
	malloc.c.h
	nedmalloc.h
	)

set (INLINES
	)

set (SOURCES
	nedmalloc.cpp
	)

source_group("" FILES ${HEADERS} ${SOURCES})

add_library(${LIB_NAME} STATIC ${HEADERS} ${SOURCES})
